<% if project.nil? %>

<% else %>
  <h3><%= l(:label_charts)%></h3>
  <% if params[:query_id].nil? %>
  	<%= link_to(l(:label_charts_issue), {:controller => 'chart', :action => 'issues_chart', :project_id => project}) %>
  <% else %>
  	<%= link_to(l(:label_charts_issue), {:controller => 'chart', :action => 'issues_chart', :project_id => project, :query_id => params[:query_id]}) %>
  <% end %>
  <br/>
<% end %>